<?php

/**
 * Menu form.
 *
 * @package    Amman to London
 * @subpackage form
 * @author     Adel Abu-Saif
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class MenuForm extends BaseMenuForm {

    public function configure() {
        unset($this['created_at'], $this['updated_at']);
        $this->embedI18n(array('en', 'ar'));
        $this->widgetSchema['ar']->setLabel('Arabic');
        $this->widgetSchema['en']->setLabel('English');
//        if (sfContext::getInstance()->getUser()->getAttribute('menu_id') == '1')
//            unset($this['column_index']);
        $columns_numbers = range(1, 5);
        $columns_numbers = (array_combine($columns_numbers, $columns_numbers));
        $this->widgetSchema['column_index'] = new sfWidgetFormChoice(array('choices' => $columns_numbers));
        
    }

}

